Page({
  data: {
		
		txt:[
			{
				tit:'活动信息'
			},
			{
				tit:'活动配置'
			},
			{
				tit:'推广投放'
			},
			{
				tit:'完成'
			}
		],

		taskType:[
			{txt:'每日签到',type:'SIGN'},
			{txt:'关注店铺',type:'FOLLOW'},
			{txt:'加入会员',type:'MEMBER'},
			{txt:'浏览商品',type:'VIEW'},
			{txt:'收藏商品',type:'COLLECT'},
			{txt:'分享活动',type:'SHARE'},
    ],
    
    isBecomeDue:true,

		// 控制进程
    state:0,    // 0-活动信息 -- 1-活动配置 -- 2-推广投放 -- 3-完成

    // 用户版本
    versionNo:0,    //1-基础版本  --- 2-中级版本  ---3-高级版本   目前只有1和3

	},

	prev(){

		this.setData({
			state:this.data.state - 1 < 0 ? 0 : this.data.state - 1
		})

	},
	next(){

    if(this.data.state==0){
      
      this.saveData();

    }else if(this.data.state == 1){

      getApp().edit = ''
      
      let ii = this.optionsPage.data.active

      if(ii == 0){

        //日常
        this.cjtask();

      }else if(ii == 1){

        //大促
        this.gjtask();

      }else{

        //会员运营
        this.member1();

      }

      // if(ii == 1){

      //   this.gjtask();

      // }else {
        
      //   this.cjtask();
       
      // }

			//console.info(this.optionsPage.$page.lowOption)
    
      // return
    
		}else if(this.data.state == 2){
      this.setData({
        state:this.data.state + 1 > 3 ? 3 : this.data.state + 1
      })
    }

  },
  //会员运营
  member1(){
    let data = ''
		data = this.optionsPage.$page.member.data
	
			let aTask = JSON.parse(JSON.stringify(data.taskList));

			let aShare = []

			aTask.map((v,i) => {

				this.data.taskType.map((a,idx) => {
					if(v.tit == a.txt){
            v.type = a.type
					}
					v.name = v.tit
					v.orderIndex = i
					v.dayLimitTime = v.num
          // v.prize_num = v.prizeNum 
        })
        
			})

			for(let ii in aTask){
				if(aTask[ii].tit == '分享活动'){
					aShare = aTask[ii]
					break;
				}
			}

//--------------------------------------------------------------------------------------
			aTask.push({
				name:'用户每天增加次数',
				dayLimitTime:data.userDayGameTime ? data.userDayGameTime : 1,
        orderIndex:20,
        prizeNum:data.userDayGameTime ? data.userDayGameTime : 1,
				type:'USER_DAY_ADD'
			})

			aTask.push({
				name:'老用户每天增加次数',
				dayLimitTime:data.oldUserDayGameTime ? data.oldUserDayGameTime : 1,
        orderIndex:21,
        prizeNum:data.oldUserDayGameTime ? data.oldUserDayGameTime : 1,
				type:'OLD_USER_DAY_ADD'
			})

			aTask.push({
				name:'用户关注每天增加的次数',
        dayLimitTime:data.userFollowDayGameTime ? data.userFollowDayGameTime : 1,
        prizeNum:data.userFollowDayGameTime ? data.userFollowDayGameTime : 1,
        orderIndex:22,
				type:'USER_FOLLOW_DAY_ADD'
      })

      //!------------------------------------------------------------//


     console.log("member这里是处理过的任务=======>",aTask,aShare);

      let prizeData = []
      
      if((data.prizeData.length == 0 || data.prizeData == '') && (data.listPrize.length == 0 || data.listPrize == '')){
        my.alert({
          content: '请配置奖品！'
        });
        return
      }

			data.prizeData.map((v,i) => {
				let aaPrize = {
							dayPrizeLimitCount : v.dayNum,
							num : v.count,
							prizeImage : v.url,
							prizeName:v.name,
							rate:v.probability,
							type:v.type == '实物奖' ? 1 : 2,
              difficulty:v.diff == '高' ? 3 : v.diff == '中' ? 2 : 1,
              bindNumIid : v.bindNumIid,
              ename: v.ename ? v.ename : ''
						}
				
						prizeData.push(aaPrize)
				
			})

			let listPrizeData = []

			data.listPrize.map((v,i) => {
				let aaPrize = {
							prizeImage:v.url,
							prizeName:v.name,
							ranking:v.num,
              type:v.typ == '实物奖' ? 1 : 2,
              bindNumIid : v.bindNumIid,
              ename: v.ename ? v.ename : ''
						}
				
						listPrizeData.push(aaPrize)
				
			})

			data.endSelectShopData.map((v,i) => {
				v.productId = v.num_iid
				v.logo = v.pic_url
			})

      console.info(data.endSelectShopData)
      
      let rr = data.roleText

      let result1 = ''

      for (let i = 0; i < rr.length; i++) {
        let c = rr.substr(i, 1);
        if (c == "\n")
          result1 = result1 + "[回车]";
        else
          result1 = result1 + c
      }

		let o = {

			activityId:getApp().activityId,
      levelInfos: data.diffList,
      
      roleText:result1,
      
			oldUserDayGameTime:data.oldUserDayGameTime,
			userFollowDayGameTime:data.userFollowDayGameTime,
			userDayGameTime:data.userDayGameTime,
			tasks :aTask,
			pkPrizes:prizeData,
      topPrizes:listPrizeData,
      scoreToGameTime:data.integral>0?data.integral:1,
      orderLevel:4,
			collectProducts:data.endSelectShopData,
			activityShare:{
				content:aShare.shareTextarea,
				logo:aShare.url ? aShare.url : '',
				title:aShare.title
			}
    
    }
    
    // console.log("会员运营",o);

    // return

		this.upLoadActivity(o)
    
  },

  //高级
  gjtask(){
    
    let data = ''

		data = this.optionsPage.$page.optionCpt.data
	
			let aTask = JSON.parse(JSON.stringify(data.taskList));

			let aShare = []

			aTask.map((v,i) => {

        // if(v.tit == "收藏商品"){
        //   console.log("vvv=====》",v)
        // }

				this.data.taskType.map((a,idx) => {
					if(v.tit == a.txt){
            v.type = a.type
					}
					v.name = v.tit
					v.orderIndex = i
					v.dayLimitTime = v.num
          // v.prize_num = v.prizeNum
          
				})
			})

			for(let ii in aTask){
				if(aTask[ii].tit == '分享活动'){
					aShare = aTask[ii]
					break;
				}
			}

//--------------------------------------------------------------------------------------
			aTask.push({
				name:'用户每天增加次数',
				dayLimitTime:data.userDayGameTime ? data.userDayGameTime : 1,
        orderIndex:20,
        prizeNum:data.userDayGameTime ? data.userDayGameTime : 1,
				type:'USER_DAY_ADD'
			})

			aTask.push({
				name:'老用户每天增加次数',
				dayLimitTime:data.oldUserDayGameTime ? data.oldUserDayGameTime : 1,
        orderIndex:21,
        prizeNum:data.oldUserDayGameTime ? data.oldUserDayGameTime : 1,
				type:'OLD_USER_DAY_ADD'
			})

			aTask.push({
				name:'用户关注每天增加的次数',
        dayLimitTime:data.userFollowDayGameTime ? data.userFollowDayGameTime : 1,
        prizeNum:data.userFollowDayGameTime ? data.userFollowDayGameTime : 1,
        orderIndex:22,
				type:'USER_FOLLOW_DAY_ADD'
      })

      //!------------------------------------------------------------//


     //console.log("gj这里是处理过的任务=======>",aTask,aShare);

      let prizeData = []
      
      if((data.prizeData.length == 0 || data.prizeData == '') && (data.listPrize.length == 0 || data.listPrize == '')){
        my.alert({
          content: '请配置奖品！'
        });
        return
      }

			data.prizeData.map((v,i) => {
				let aaPrize = {
							dayPrizeLimitCount : v.dayNum,
							num : v.count,
							prizeImage : v.url,
							prizeName:v.name,
							rate:v.probability,
							type:v.type == '实物奖' ? 1 : 2,
              difficulty:v.diff == '高' ? 3 : v.diff == '中' ? 2 : 1,
              bindNumIid : v.bindNumIid,
              ename: v.ename ? v.ename : ''
						}
				
						prizeData.push(aaPrize)
				
			})

			let listPrizeData = []

			data.listPrize.map((v,i) => {
				let aaPrize = {
							prizeImage:v.url,
							prizeName:v.name,
							ranking:v.num,
              type:v.typ == '实物奖' ? 1 : 2,
              bindNumIid : v.bindNumIid,
              ename: v.ename ? v.ename : ''
						}
				
						listPrizeData.push(aaPrize)
				
			})

			data.endSelectShopData.map((v,i) => {
				v.productId = v.num_iid
				v.logo = v.pic_url
			})

      console.info(data.endSelectShopData);
      
      let rr = data.roleText

      let result1 = ''

      for (let i = 0; i < rr.length; i++) {
        let c = rr.substr(i, 1);
        if (c == "\n")
          result1 = result1 + "[回车]";
        else
          result1 = result1 + c
      }

		let o = {

			activityId:getApp().activityId,
			levelInfos: data.diffList,
			roleText:result1,
			oldUserDayGameTime:data.oldUserDayGameTime,
			userFollowDayGameTime:data.userFollowDayGameTime,
			userDayGameTime:data.userDayGameTime,
			tasks :aTask,
			pkPrizes:prizeData,
      topPrizes:listPrizeData,
      scoreToGameTime:data.integral>0?data.integral:1,
      orderLevel:3,
			collectProducts:data.endSelectShopData,
			activityShare:{
				content:aShare.shareTextarea,
				logo:aShare.shareImg ? aShare.shareImg : '',
				title:aShare.title
			}
    
    }
    
    //my.alert({title:"高级提交",content:JSON.stringify(O)})


		this.upLoadActivity(o)

  },

  //初级
  cjtask(){
    
			let data = ''
			data = this.optionsPage.$page.lowOption.data
		

			let aTask = JSON.parse(JSON.stringify(data.taskList));

			aTask.map((v,i) => {
				this.data.taskType.map((a,idx) => {
					if(v.tit == a.txt){
            v.type = a.type
					}
					v.dayLimitTime = v.num
					v.name = v.tit
          v.orderIndex = i
          // v.prize_num = v.prizeNum
          
				})
			})


			aTask.push({
				name:'用户每天增加次数',
				dayLimitTime:data.userDayGameTime ? data.userDayGameTime : 1,
        orderIndex:20,
        prizeNum:data.userDayGameTime ? data.userDayGameTime : 1,
				type:'USER_DAY_ADD'
			})

			aTask.push({
				name:'老用户每天增加次数',
				dayLimitTime:data.oldUserDayGameTime ? data.oldUserDayGameTime : 1,
        orderIndex:21,
        prizeNum:data.oldUserDayGameTime ? data.oldUserDayGameTime : 1,
				type:'OLD_USER_DAY_ADD'
			})

			aTask.push({
				name:'用户关注每天增加的次数',
        dayLimitTime:data.userFollowDayGameTime ? data.userFollowDayGameTime : 1,
        prizeNum:data.userFollowDayGameTime ? data.userFollowDayGameTime : 1,
        orderIndex:22,
				type:'USER_FOLLOW_DAY_ADD'
      })


     //console.log("kfjdkfjkdsjfdsjfk",aTask);

      let prizeData = []
      
      if((data.prizeData.length == 0 || data.prizeData == '') && (data.listPrize.length == 0 || data.listPrize == '')){
        my.alert({
          content: '请配置奖品！'
        });
        return
      }

			data.prizeData.map((v,i) => {
				let aaPrize = {
							dayPrizeLimitCount : v.dayNum,
							num : v.count,
							prizeImage : v.url,
							prizeName:v.name,
							rate:v.probability,
							type:v.type == '实物奖' ? 1 : 2,
              difficulty:v.diff == '高' ? 3 : v.diff == '中' ? 2 : 1,
              bindNumIid : v.bindNumIid,
              ename: v.ename ? v.ename : ''
						}
				
						prizeData.push(aaPrize)
				
			})

			let listPrizeData = []

			data.listPrize.map((v,i) => {
				let aaPrize = {
							prizeImage:v.url,
							prizeName:v.name,
							ranking:v.num,
              type:v.typ == '实物奖' ? 1 : 2,
              bindNumIid : v.bindNumIid,
              ename: v.ename ? v.ename : ''
						}
				
						listPrizeData.push(aaPrize)
				
      })

      
      let rr = data.roleText

      let result1 = ''

      for (let i = 0; i < rr.length; i++) {
        let c = rr.substr(i, 1);
        if (c == "\n")
          result1 = result1 + "[回车]";
        else
          result1 = result1 + c
      }
      

		let o = {

			activityId:getApp().activityId,
			levelInfos: data.diffList,
			roleText:result1,
			oldUserDayGameTime:data.oldUserDayGameTime,
			userFollowDayGameTime:data.userFollowDayGameTime,
			userDayGameTime:data.userDayGameTime,
			tasks :aTask,
			pkPrizes:prizeData,
      topPrizes:listPrizeData,
      scoreToGameTime:data.integral>0?data.integral:1,
			orderLevel:1,
    
    }

    


    //return;

		this.upLoadActivity(o)
  },
	
	upLoadActivity(o){

    //console.info(JSON.stringify(o))

    // my.alert({title:"提交",content:JSON.stringify(o)})

    // return;
    
    try {

      getApp().cloud.application.httpRequest({

        'path' : '/api/b/saveActionSetting', 
        'method':'POST',
        'headers':{ "Content-Type":"application/json"},
        'body':o,

        }).then(res => {

          //my.alert({content:JSON.stringify(res)})

          if(res.code!=200){

             my.showToast({content:res.msg})
            
          }else{



            if(this.lowOption){
              this.lowOption.onSubmit();
            }

            if(this.optionCpt){
              this.optionCpt.onSubmit();
            }

            if(this.member){
              this.member.onSubmit();
            }

            this.setData({
              state:this.data.state + 1 > 3 ? 3 : this.data.state + 1
            })

            console.info("保存活动配置信息",res)

          }
          

      })
    } catch (error) {

      //my.showToast({content:JSON.stringify(error)})

      my.alert({content:JSON.stringify(error)})

    }

		

  },


  // 查询商家订购版本
  getVersion(){

    // versionNo 订购版本字段
    getApp().cloud.application.httpRequest({
      'path' : '/api/b/user/getMerchantInfo', 
      'method':'GET',
      'headers':{ "Content-Type":"application/json"},
      'body':{}
      }).then(res => {

        //versionNo==1 初级  versionNo==2 中级  versionNo==3 高级

        console.log("查询商家订购版本",res)
        if(res.data.versionNo == 3){

          //权限覆盖
          // this.optionsPage.setData({
          //   powerCover:false
          // })

          this.setData({
            versionNo:res.data.versionNo
          })
        }else{

				}
				
				// this.setData({
				// 	versionNo:3
				// })
        
        //getApp().versionNo = res.data.versionNo

        
    })

  },
  
  //获取皮肤主题
  getSkinTheme(){
    getApp().cloud.application.httpRequest({
      'path' : '/api/b/user/getTheme', 
      'method':'GET',
      'headers':{ "Content-Type":"application/json"},
      'body':{},
      }).then(ress => {

				ress.data.map(v=>{
					v.json = JSON.parse(v.json)
        })

        this.informationPage.setData({
          skinD:ress.data
        })

        console.info("皮肤主题",ress);

    })
  },

  //查询活动名称重复
  getActiveName(title){
    // console.log(title);
    // return
    getApp().cloud.application.httpRequest({
      'path' : '/api/b/checkNameIsExist', 
      'method':'POST',
      'headers':{ "Content-Type":"application/json"},
      'body':{
        title:title
      },
      }).then(ress => {

        this.informationPage.setData({
          cftitle:ress.data
        })

        console.info("活动名称是否重复",ress);

        // this.informationPage.setData({
        //   skinD:ress.data
        // })
        
    })
  },

  //保存
  saveData(){

		console.log("======>>>",this.informationPage.data);
		
		my.showLoading({
			content: '活动创建中...'
		});

    //return 

    // 上传过后的图片不存

    let data={
      title:this.informationPage.data.title,
      startTime:this.informationPage.data.startTime,
      endTime:this.informationPage.data.endTime,
      logo:this.informationPage.data.imgData.logo,
      themeId:this.informationPage.data.skin,
      headImage:this.informationPage.data.imgData.headImage,
      bigPrizeImage:this.informationPage.data.imgData.bigPrizeImage
    }

    let data2=[
      {
        difficulty:1,               //拼图难度
        pictureUrl:this.informationPage.data.imgData.pictureUrl,                //拼图图片  
        grassPictureUrl:this.informationPage.data.grassProductId1.grassProductId1,//种草图片. 判断如果是图片就上传  是视频就直接是链接
        productId:this.informationPage.data.grassProductId1.jumplink           //商品链接
      },
      {
        difficulty:2,
        pictureUrl:this.informationPage.data.imgData.pictureUrl1,
        grassPictureUrl:this.informationPage.data.grassProductId2.grassProductId2,           //种草图片
        productId:this.informationPage.data.grassProductId2.jumplink 
      },
      {
        difficulty:3,
        pictureUrl:this.informationPage.data.imgData.pictureUrl2,
        grassPictureUrl:this.informationPage.data.grassProductId3.grassProductId3,           //种草图片
        productId:this.informationPage.data.grassProductId3.jumplink 
      }
    ]


    console.log("===data==>",JSON.stringify(data),"=======???>>");
    console.log("===data2==>",JSON.stringify(data2),"=======???>>");

    // let data={
    //   "title":'dfdsfdsfdsf',
    //   "startTime":"2021-01-01 00:00",
    //   "endTime":"2021-02-13 00:00",
    //   "themeId":1,
    //   "headImage":"https://isv.alibabausercontent.com/00000000/imgextra/i2/4161056916/O1CN01y1MEBw20xZqX5p59e_!!4161056916-2-isvtu-00000000.png",
    //   "bigPrizeImage":"https://isv.alibabausercontent.com/00000000/imgextra/i2/4161056916/O1CN01pTOtW720xZqki757C_!!4161056916-2-isvtu-00000000.png"
    // }
    // let data2=[
    //   {
    //     "difficulty":1,
    //     "pictureUrl":"https://isv.alibabausercontent.com/00000000/imgextra/i1/4161056916/O1CN01tr1o1420xZqgrLBq0_!!4161056916-2-isvtu-00000000.png",
    //     "grassPictureUrl":"https://isv.alibabausercontent.com/00000000/imgextra/i4/4161056916/O1CN01FHF1dQ20xZqlbDxLG_!!4161056916-2-isvtu-00000000.png",
    //     "productId":"565510025155"
    //   },{
    //     "difficulty":2,
    //     "pictureUrl":"https://isv.alibabausercontent.com/00000000/imgextra/i1/4161056916/O1CN01RXYudg20xZqftnOns_!!4161056916-2-isvtu-00000000.png",
    //     "grassPictureUrl":"555",
    //     "productId":"625915322662"
    //   },{
    //     "difficulty":3,
    //     "pictureUrl":"https://isv.alibabausercontent.com/00000000/imgextra/i3/4161056916/O1CN01FXJssa20xZqbo5OLU_!!4161056916-2-isvtu-00000000.png",
    //     "grassPictureUrl":"https://isv.alibabausercontent.com/00000000/imgextra/i2/4161056916/O1CN01bP7zG920xZqdfjt6f_!!4161056916-2-isvtu-00000000.png",
    //     "productId":"627255922033"
    //   }
    // ];


    // let datakMsg=[
    //   {
    //     type:"title",
    //     msg:"活动名称不能为空"
    //   },
    //   {
    //     type:"startTime",
    //     msg:"活动开始时间不能为空"
    //   },
    //   {
    //     type:"endTime",
    //     msg:"活动结束时间不能为空"
    //   },
    //   {
    //     type:"themeId",
    //     msg:"皮肤选择不能为空"
    //   },
    //   {
    //     type:"headImage",
    //     msg:"加载头图不能为空"
    //   },
    //   {
    //     type:"bigPrizeImage",
    //     msg:"大奖头图不能为空"
    //   },
    //   {
    //     type:"pictureUrl",
    //     msg:"拼图图片未填全"
    //   },
    //   {
    //     type:"grassPictureUrl",
    //     msg:"种草图片/视频未填全"
    //   },
    //   {
    //     type:"productId",
    //     msg:"商品id不能为空"
    //   }
    // ]
		
    getApp().cloud.application.httpRequest({
      'path' : '/api/b/createAction', 
      'method':'POST',
			'headers':{ "Content-Type":"application/json"},
			'exts':{"timeout":10000},
      'body':{
				activity:data,
				levelInfo:data2
      },
    }).then(ress => {

			my.hideLoading()

      console.info("创建活动===============》",ress)


      if(ress.code!=200){

        my.showToast({content:ress.msg})

        //my.alert({content:ress.msg})

      }else{

        my.showToast({content:"创建活动成功！"})

        //my.alert({content:JSON.stringify(ress)})

        this.setData({
          appId:ress.data.appId
        })
        
        //my.alert({title:"chuangjianwancde id",content:this.data.appId})

        getApp().activityId = ress.data.activityId

        getApp().APPID = ress.data.appId

        // 活动开始时间 - 活动结束时间
        getApp().actStart = ress.data.start_time

        getApp().actEnd = ress.data.end_time

        getApp().cle = 'act'

        this.setData({
          state:this.data.state + 1 > 3 ? 3 : this.data.state + 1
        })

      }   
    }).catch(err=>{

      my.hideLoading()

    })
  },

  

  //上传图片
  // uploadImg(imgurl){
  //   let x={};

  //       console.info(imgurl)


  //   for(let i in imgurl){
  //     getApp().cloud.file.uploadFile({  
  //       filePath: imgurl[i],  
  //       fileType: 'image'
  //     }).then((res)=>{
  //       x[i]=res.url
  //       console.info(res)
  //     })
  //   }

  //   //这里的x是空的
  //   setTimeout(()=>{
  //     return x;
  //   },100)

  // },

  // async uploadImg(url){

  //   return await getApp().cloud.file.uploadFile({  
  //     filePath: url,  
  //     fileType: 'image'
  //   })

  //     // getApp().cloud.file.uploadFile({  
  //     //   filePath: url,  
  //     //   fileType: 'image',  
  //     //   fileName: '/user/avatar.png'  
  //     // }).then((res)=>{
  //     //   console.log("上传图片成功",res.url)
  //     //   return res.url
  //     // })

  // },


  //二维码生成
  QRcode(){

    //my.alert({content:this.data.appId})

    let link=`https://m.duanqu.com?_ariver_appid=${this.data.appId}`
    getApp().cloud.application.httpRequest({
      'path' : '/imageGenerator', 
      'method':'POST',
      'headers':{ "Content-Type":"application/json"},
      'body':{ content : link },
      }).then(ress => {

        this.pop.setData({
          qrcode:ress.data
        })

        //return ress.data
        console.info("erweima",ress.data)
    })

  },


  //获取当前日期
  getNow(){
    getApp().cloud.application.httpRequest({
      'path' : '/api/c/user/getNow', 
      'method':'GET',
      'headers':{ "Content-Type":"application/json"},
      'body':{},
      }).then(ress => {

        this.informationPage.setData({
          nowdate:ress.data
        })
        
        console.info("当前时间",ress)
    })
  },

  // 判断商家是否到期
  becomeDue(){
    getApp().cloud.application.httpRequest({
      'path' : '/api/b/user/getOrderTime', 
      'method':'GET',
      'headers':{ "Content-Type":"application/json"},
      'body':{},
      }).then(ress => {

        console.log("商家订购信息",ress);

        if(ress.code == 200){
          this.setData({
            isBecomeDue:ress.data
          })
        }


        
    })
  },

  qxf(){
    my.qn.navigateToWebPage({
        url: "https://fuwu.taobao.com/ser/detail.htm?spm=a1z13.pc_search_result.1234-fwlb.5.3d865acapi4V9S&service_code=FW_GOODS-1001130275&tracelog=search&from_key=%E6%8B%BC%E6%8B%BC%E4%B9%90%E5%86%B2%E6%A6%9C",
        success: res => {
        },
        fail: res => {
        }
      })
  },

  onShow(){

      this.becomeDue();

      //this.getSkinTheme();    //皮肤主题

    // if(getApp().typee && getApp().typee == 1){
       
    //   this.setData({
    //     state:1
		// 	})
			
		// 	getApp().typee = ''
    // }

    // this.getVersion();      //查询用户订购版本  用于编辑跳转低高级


    if(getApp().H){

      console.info(getApp().H)

      this.setData({
        state:getApp().H
      })

      getApp().H = ''
    }
  },

  onHide() {
    
    // this.setData({
    //   state:0
    // })

    getApp().H = ''

  },

	onLoad(query){

     if(getApp().typee && getApp().typee == 1){
       
      this.setData({
        state:1
			})
			
			getApp().typee = ''
    }


   

    
    this.getNow();      

		// getApp().cloud.application.httpRequest({
    //   'path' : '/api/b/user/getMerchantOnSale', 
    //   'method':'GET',
    //   'headers':{ "Content-Type":"application/json"},
    //   'body':{},
    //   }).then(ress => {
    //     console.info("11111",ress)
    // })

  },

  
});
